/**
 * 
 */
package com.cqan.account.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cqan.account.dao.RoleDao;
import com.cqan.account.entity.Role;
import com.cqan.account.service.RoleService;
import com.cqan.service.impl.EntityServiceImpl;

/**
 * @Description TODO
 * @author slaton.wu@gmail.com
 * @date 2012-6-29下午7:19:11
 *
 */
@Service("roleService")
public class RoleServiceImpl extends EntityServiceImpl<Role, Long, RoleDao> implements RoleService {

	@Override
	public Role getRoleByRoleName(String rolename) {
		
		return entityDao.findUniqueBy("rolename", rolename);
	}
	
	@Override
	@Autowired
	public void setEntityDao(RoleDao entityDao) {
		this.entityDao = entityDao;
	}

}
